home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / Samples / SprocketExamples / DroneZone / DroneZone Sources / DZFake3DSound.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-07-14  |  1.1 KB  |  57 lines  |  [TEXT/CWIE]

  1. /*
  2.  *    File:        DZFake3DSound.h
  3.  *    Author:        Dan Venolia
  4.  *
  5.  *    Copyright © 1996 Apple Computer, Inc.
  6.  */
  7.  
  8. #ifndef __DZFake3DSound__
  9. #define __DZFake3DSound__
  10.  
  11. #include <Sound.h>
  12. #include <SoundComponents.h>
  13.  
  14. #ifndef FAKE_3D_SOUND
  15.     #define FAKE_3D_SOUND        1
  16. #endif
  17.  
  18. #if FAKE_3D_SOUND
  19.     #include <Sound.h>
  20.     
  21.     #define SndSetInfo            FakeSndSetInfo
  22.     #define SndGetInfo            FakeSndGetInfo
  23.     
  24.     OSErr FakeSndSetInfo(
  25.         SndChannelPtr            inSndChannel,
  26.         OSType                    inSelector,
  27.         void*                    inData);
  28.     
  29.     OSErr FakeSndGetInfo(
  30.         SndChannelPtr            inSndChannel,
  31.         OSType                    inSelector,
  32.         void*                    outData);
  33.  
  34.  
  35.     #ifdef REAL_3D_INSTALL
  36.  
  37.         enum {
  38.             siPreMixerSoundComponent    = 'prmx',
  39.             siPostMixerSoundComponent   = 'psmx',
  40.             kSoundEffectsType           = 'snfx',
  41.             kReverbSubType              = 'revb'
  42.         };
  43.         
  44.         struct SoundComponentLink {
  45.             ComponentDescription            description;
  46.             SoundSource                     mixerID;                
  47.         };
  48.         typedef struct SoundComponentLink SoundComponentLink;
  49.         typedef SoundComponentLink *SoundComponentLinkPtr;
  50.     #endif
  51.  
  52. #endif
  53.  
  54.  
  55.  
  56.  
  57. #endif /* __DZDrone__ */